package com.dao;

import com.entity.Book;
import com.entity.Operatebook;
import com.entity.Users;

import java.util.List;

/**
 * @author 20386
 */
public interface AddDao {
    //添加用户
    Users create(Users user) throws Exception;

    Users getByUsername(String username) throws Exception;

    //添加图书
    Book addBook(Book book) throws Exception;

    Book getByBookname(String bookname) throws Exception;

    //更新图书
     Book updateByBook(Book book)throws Exception;
     // 查询bookid
     Book  getBybookId(long bookid) throws Exception;

     //更新密码
    Users updatePassword(Users user)throws Exception;
     //修改密码
//    Users getByUsernameOrPassword(String username,String password) throws Exception;
    Users getByUsernameForPassword(String username,String pwdHash) throws Exception;

    Users getByUserid(long userid) throws Exception;

    Users updateAdmin(Users users) throws Exception;












}
